/***
 * @description axios封装
 * @file api.ts
 * @author andy
 * @date 2024/3/22 16:40
 */
// file:api.s
// 1、导入axios以及拦截器
import service from './request'

// demo接口1
export const demo1 = (data: any) => {
    return service({
        url: '/user/user/demo1/' + data,
        method: 'post'
    })
};


// demo接口2
export const demo2 = (data: any) => {
    return service({
        url: '/user/user/demo2',
        method: 'post',
        data
    })
};
// 登录结构
export const login = (data: any) => {
    return service({
        url: '/user/login?userName=' + data.userName + '&userPass=' + data.userPass,
        method: 'get',
    })
};
// 美术馆列表
export const galllist = () => {
    return service({
        url: '/gall/list',
        method: 'get',
    })
};
// 美术馆时间表
export const showdate = (gid: any) => {
    return service({
        url: '/gall/showdate?gid=' + gid,
        method: 'get',
    })
};
// 预约记录表
export const sublist = () => {
    return service({
        url: '/gall/list1',
        method: 'get',
    })
};
//预约记录添加
export const subadd = (data: any) => {
    return service({
        url: '/gall/subadd',
        method: 'post',
        data
    })
};
